import request from "../axios/request";

/**
 * 获取表单中区县信息列表
 * @param parentId 父级区县id
 * @returns {Promise<unknown>}
 */
function getFormDistrictInfo(parentId) {
    return new Promise((resolve, reject) => {
        request("get", "/district/getFormDistrictInfo", {
            parentId,
        })
            .then(resp => {
                resolve(resp)
            }, err => {
                reject(err);
            })
    })
}

export {getFormDistrictInfo};